package com.ITD.controller;

import com.ITD.service.ClassService;
import com.ITD.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(tags="班级事件")
@RestController
@RequestMapping("/grade")
public class ClassController {
    @Autowired
    private ClassService classService;
    @ApiOperation("获取班级清单")
    @GetMapping("/class_list")
    public Result getClassList(){
        return Result.success(classService.getClassList());
    }
}
